package fhp.hlhj.giantfold.presenter

import fhp.hlhj.giantfold.interfaces.ISettings
import fhp.hlhj.giantfold.javaBean.LoginOutBean
import fhp.hlhj.giantfold.module.SettingsModule

/**
 * author: FHP
 * data: on 2018\1\11 0011 16:23
 * E-Mail: 103945089@qq.com
 */
class SettingsPresenter(private val iSettings: ISettings) : SettingsModule.SettingListener {
    private val settingModule=SettingsModule()
    /**
     * 登出
     */
    fun loginOut(){
        settingModule.loginOut(this)
    }
    override fun loginOutover(loginOutBean: LoginOutBean) {
        iSettings.loginOut(loginOutBean)
    }
    override fun showLoading() {
        iSettings.showLoading()
    }

}